
package edu.wpi.first.team1662.subsystems;

import edu.wpi.first.team1662.RobotMap;
import edu.wpi.first.team1662.commands.Drive;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 */
public class Drivetrain extends Subsystem {
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    private Talon leftMotor = new Talon(RobotMap.leftMotor); //This map to RobotMap.java
    private Talon rightMotor = new Talon(RobotMap.rightMotor);
    private Talon shooterMotor = new Talon(RobotMap.shootMotor);
    private RobotDrive robo = new RobotDrive(leftMotor, rightMotor);
    
    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
        setDefaultCommand(new Drive());
    }
    
    public void tankDrive(double left, double right){
        robo.tankDrive(left, right);
    }
    
    public void revShooter(double speed){
        shooterMotor.set(speed);
    }
    
}